﻿<%@ page import="objects.*" %>
<div id="header">
	
		<div id="headerimage">
			<IMG SRC="http://localhost:8080/Anagram/images/header.png">
		</div>	
			
		<div id="headertitle">
			<h1>награммы</h1>
		</div>				
	
	<div id="authorisation">		
		<% User user = (User)session.getAttribute("user"); 
			if(user!=null){%>
			рады видеть Вас, <%= user.getName()%> </br>
			<a href="http://localhost:8080/Anagram/output">выйти</a>
		<%}else{%>
			<form method="post" action="http://localhost:8080/Anagram/input">
				e-mail: <input type="text" name="mail" size="10"></br>
				password: <input type="password" name="password"size="10"></br>
				<input type="submit" value="войти">
			</form>
			<%}%>
	</div>
</div>